// 封装用户接口 登录注册
import request from '@/utils/request'
// 注册
export const register = data => request.post('/user/registered', data)
// 登录
export const login = data => request.post('/user/login', data)
// 获取用户信息
export const getUserInfo = () => request.get('/user')
// 查看收藏
export const getCollect = () => request.get('/user/favorites')
